/**
 *  Copyright (c)  2011-2020 Panguso, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Panguso, 
 *  Inc. ("Confidential Information"). You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into with Panguso.
 */

package cn.edu.thu.log.web.service.impl;

import cn.edu.thu.log.clean.CleanConfigSave;
import cn.edu.thu.log.clean.NoiseConfigSave;
import cn.edu.thu.log.web.service.LogNoiseCleanConfigFileSaveService;
/**
 * 
 * @author Student
 *
 */
public class LogNoiseCleanConfigFileSaveServiceImpl implements
		LogNoiseCleanConfigFileSaveService {
	private static LogNoiseCleanConfigFileSaveService singleton = null;
/**
 * 
 * @return
 */
	public static synchronized LogNoiseCleanConfigFileSaveService instance() {
		if (singleton == null) {
			singleton = new LogNoiseCleanConfigFileSaveServiceImpl();
		}
		return singleton;
	}

	@Override
	public void writeCleanConfig(String filename, String treexml) {
		// System.out.println("In the logcleanconfigfileSaveService!");
		CleanConfigSave configcleansave = new CleanConfigSave();
		configcleansave.writeCleanConfig(filename, treexml);
	}

	@Override
	public void writeNoiseConfig(String filename, String treexml) {
		NoiseConfigSave confignoisesave = new NoiseConfigSave();
		confignoisesave.writeNoiseConfig(filename, treexml);
	}
}
